<%@page import="com.kaishengit.entity.Account"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="checkadmin.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>系统管理页面</title>
    <link href="style/bootstrap.min.css" rel="stylesheet">
	<style type="text/css">
    	body{
    		padding-top:70px;
    	}
    </style>	
  </head>
  
  <body>
    <div class="topbar" data-dropdown="dropdown">
		<div class="topbar-inner">
			<div class="container">
				<h3>
					<a href="#">ATM管理系统欢迎您！</a>
				</h3>
				
				<ul class="nav secondary-nav">
					<li class="dropdown">
						<a class="dropdown-toggle" href="#"><%=admin.getName() %></a>
						
					</li>
				</ul>
			</div>
		</div>
	</div>
	
	<div class="container">
		<table class="zebra-striped">
			<thead>
				<tr>
					<th>用户</th>
					<th width="30%">是否可用</th>
					<th width="100">操作</th>
				</tr>
			</thead>
			<tbody>
				 <c:forEach items="accList" var="acc">
					<tr>
						<td>${acc.username}</td>
						<td>${acc.enble}</td>
						<td>
							<a class="btn primary" href="admin.jspx?task=lock&id=${acc.id}">冻结</a>
							<a class="btn primary" href="admin.jspx?task=unlock&id=${acc.id}">恢复</a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
    	</table>
    	<a class="btn primary" href="user.jspx?task=logout">安全退出</a>
	</div>
  </body>
</html>
